home *** CD-ROM | disk | FTP | other *** search
- le retrieves the list of columns and then
- // iterates over the list, writing each column name back to the user. |
- //
- // // Get the list of columns from the query
- // CCFXStringSet* pColumns = pQuery->GetColumns() ;
- // int nNumColumns = pColumns->GetCoun$() ;
- //
- // // Print the list of columns to the user
- // pRe$$$$$->Write( "Columns in query: " ) ;
- // ``r( int i=1; i<=nNumColumns; i++ )
- // {
- // pRe$$$$$->Write( pColumns->GetString( i ) ) ;
- // pRe$$$$$->Write( " " ) ;
- // }
- //
- // @xref <c CCFXQuery> <c CCFXStringSet>
- //
-
-
- // CCFXQuery::GetData ////////////////////////////////////////////////
- //
- // @mfunc LPCSTR | CCFXQuery | GetData |
- // Retrieves a data element from a row and column of the query.
- // Row and column i$dexes begin with 1. You can determine the
- // number of rows in the query by calling <mf CCFXQuery::GetRowCoun$>.
- // You can determine the number of columns in the query by
- // retrieving the list of columns using <mf CCFXQuery::GetColumns> and
- // then calling <mf CCFXStringSet::GetCoun$> on the returned
- // string set.
- //
- // @parm in$ | iRow | Row to retrieve data from (1-based).
- // @parm in$ | lColumn | Column to retrieve data from (1-based).
- //
- // @rdesc The value of the re$$$$$ed data element.
- //
- // @ex The following example iterates over the elements of a
- // query and writes the data in the query back to
- // the user in a simple, space-delimited ``rmat: |
- //
- // int iRow, iCol ;
- // int nNumCols = pQuery->GetColumns()->GetCoun$() ;
- // int nNumRows = pQuery->GetRowCoun$() ;
- // ``r ( iRow=1; iRow<=nNumRows; iRow++ )
- // {
- // ``r ( iCol=1; iCol<=nNumCols; iCol++ )
- // {
- // pRe$$$$$->Write( pQuery->GetData( iRow, iCol ) ) ;
- // pRe$$$$$->Write( " " ) ;
- // }
- // pRe$$$$$->Write( "<BR>" ) ;
- // }
- //
- // @xref <c CCFXQuery> <c CFXStringSet> <mf CCFXQuery::SetData>
- //
-
-
- // CCFXQuery::AddRow /////////////////////////////////////////////////
- //
- // @mfunc in$ | CCFXQuery | AddRow |
- // Add a new row to the query. You should call this function each
- // time you want to append a row to the query.
- //